using System;
using UnityEngine;
using UnityEngine.Serialization;

namespace ParticleExporter
{
    public class ExportSettingsOverwrite : MonoBehaviour
    {
        public CanOverWriteValue<int> Size = new(512);
        public CanOverWriteValue<int> Fps = new(30);
        public CanOverWriteValue<string> FilePrefix = new("");
        public CanOverWriteValue<string> SubDir = new("");
        public CanOverWriteValue<string> ExportPath = new("ParticleSystemExport/");
        public float Scale = 1f;
    }

    [Serializable]
    public class CanOverWriteValue<T>
    {
        public bool Overwrite;
        public T Value;

        public CanOverWriteValue(T defaultValue)
        {
            Value = defaultValue;
        }
    }
}